package com.cty.mapper;

import com.cty.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmployeeMapper {

    Employee queryById(Integer id);

    int deleteById(Integer id);

    List<Employee> queryBySalary(Double salary);

    //参数是一个实体对象该怎么取值
    int insertEmp(Employee employee);

    //根据员工的名字和薪水来查询员工信息
    List<Employee> queryByIdAndName(@Param(value = "a") String name, @Param(value = "b") Double salary);

    //插入的参数是一个map怎么办
    int insertEmpMap(Map map);

}
